package com.ruoyi.biz.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.biz.mapper.BizClassRelevanceStudentMapper;
import com.ruoyi.biz.domain.BizClassRelevanceStudent;
import com.ruoyi.biz.service.IBizClassRelevanceStudentService;

/**
 * 班级关联学生Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-03
 */
@Service
public class BizClassRelevanceStudentServiceImpl implements IBizClassRelevanceStudentService 
{
    @Autowired
    private BizClassRelevanceStudentMapper bizClassRelevanceStudentMapper;

    /**
     * 查询班级关联学生
     * 
     * @param id 班级关联学生主键
     * @return 班级关联学生
     */
    @Override
    public BizClassRelevanceStudent selectBizClassRelevanceStudentById(Long id)
    {
        return bizClassRelevanceStudentMapper.selectBizClassRelevanceStudentById(id);
    }

    /**
     * 查询班级关联学生列表
     * 
     * @param bizClassRelevanceStudent 班级关联学生
     * @return 班级关联学生
     */
    @Override
    public List<BizClassRelevanceStudent> selectBizClassRelevanceStudentList(BizClassRelevanceStudent bizClassRelevanceStudent)
    {
        return bizClassRelevanceStudentMapper.selectBizClassRelevanceStudentList(bizClassRelevanceStudent);
    }

    /**
     * 新增班级关联学生
     * 
     * @param bizClassRelevanceStudent 班级关联学生
     * @return 结果
     */
    @Override
    public int insertBizClassRelevanceStudent(BizClassRelevanceStudent bizClassRelevanceStudent)
    {
        bizClassRelevanceStudent.setCreateTime(DateUtils.getNowDate());
        return bizClassRelevanceStudentMapper.insertBizClassRelevanceStudent(bizClassRelevanceStudent);
    }

    /**
     * 修改班级关联学生
     * 
     * @param bizClassRelevanceStudent 班级关联学生
     * @return 结果
     */
    @Override
    public int updateBizClassRelevanceStudent(BizClassRelevanceStudent bizClassRelevanceStudent)
    {
        bizClassRelevanceStudent.setUpdateTime(DateUtils.getNowDate());
        return bizClassRelevanceStudentMapper.updateBizClassRelevanceStudent(bizClassRelevanceStudent);
    }

    /**
     * 批量删除班级关联学生
     * 
     * @param ids 需要删除的班级关联学生主键
     * @return 结果
     */
    @Override
    public int deleteBizClassRelevanceStudentByIds(Long[] ids)
    {
        return bizClassRelevanceStudentMapper.deleteBizClassRelevanceStudentByIds(ids);
    }

    /**
     * 删除班级关联学生信息
     * 
     * @param id 班级关联学生主键
     * @return 结果
     */
    @Override
    public int deleteBizClassRelevanceStudentById(Long id)
    {
        return bizClassRelevanceStudentMapper.deleteBizClassRelevanceStudentById(id);
    }
}
